#include "ELoadable.h"

#include "eCPP.h"
namespace engine
{

//------------------------------------------------------------
ELoadable::ELoadable() :
m_bIsLoaded( false )
{

}

//------------------------------------------------------------
ELoadable::~ELoadable()
{
  if( m_bIsLoaded )
    unload();
}

//------------------------------------------------------------
bool ELoadable::load()
{
  cASSERT( !m_bIsLoaded );

  m_bIsLoaded = true;

  return true;
}


//------------------------------------------------------------
bool ELoadable::unload()
{
  cASSERT( m_bIsLoaded );

  m_bIsLoaded = false;
  return true;
}

} // end namespace